package com.iflytek.cosmo.ocr.dao;

import com.iflytek.cosmo.ocr.model.entity.ExportTaskEntity;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 *  
 * @author <a href=mailto:ktyi@iflytek.com>伊开堂</a>
 * @date 2019/12/3 14:37
 */
public interface ExportTaskDao extends Mapper<ExportTaskEntity> {
    /**
     * 批量插入子任务
     */
    void batchInsert(List<ExportTaskEntity> exportTaskEntities);

    /**
     * 批量更新导出任务的文件名称
     * @param changFileNames
     * @param dirName
     */
    void batchUpdateFileName(@Param("changFileNames") List<String> changFileNames, @Param("dirName") String dirName);
}